<html>
    <head>
        <meta charset="utf-8" />
        <title>. : Agenda On-Line : .</title>
        <link rel="icon" href="favicon.ico" type="image/x-icon" />
        <link href="css/agenda-online-style.css" rel="stylesheet" type="text/css"/>
        <link href="css/menu.css" rel="stylesheet" type="text/css"/>
    </head>
    <body>
        <div id="logo_sistem">
            Agenda On-line
        </div>
        <div id="container-acess">
            <?php
            include 'model/User.php';
            session_start();
            if (isset($_SESSION["message"])){
                $m_type = $_SESSION["message"]['type'];
                $m_message = $_SESSION["message"]['message'];
                echo "<div id='message' class='top_message $m_type'>$m_message</div>";
                unset($_SESSION["message"]);
            }
            if (isset($_SESSION["autenticacao"])) {
                if ($_SESSION['autenticacao'] == "ok") {
                    ?>
                    <div class="text">
                        <a class="link_style" href="user.php?edit=true" title="Minha conta"><?php echo $_SESSION['usuario']->getName(); ?></a> 
                        <a class="style_button" href="login.php?session=stop">Sair</a> 
                    </div>
                    <?php
                }
            } else {
                ?>
                <form method="post" action="login.php">
                    <input type="text" placeholder="login" name="ip_login" required="true">
                    <input type="password" placeholder="senha" name="ip_senha" required="true">
                    <input class="style_button" type="submit" value="LogIn">
                </form>
            <?php } ?>
        </div>
        <div id="menu-container">
            <div class="menu">
                <div id="menu-navegator">
                    <?php
                    if (isset($_SESSION["autenticacao"])) {
                        if ($_SESSION['autenticacao'] == "ok") {
                            ?>
                            <ul>
                                <li><a href="mycontacts.php">Meus contatos</a></li>
                                <li><a href="contact.php">Novo Contato</a></li>
                                <li><a href="import.php">Importar</a></li>
                                <li><a href="myactivity.php">Atividades</a></li>
                            </ul>
                        <?php }
                    } else {
                        ?>
                        <ul>
                            <li><a href="index.php">Home</a></li>
                            <li><a href="user.php">Cadastre-se</a></li>
                        </ul>
                   <?php } ?>
                </div>
            </div>
        </div>
        <div id="conteudo-container">
            <div id="conteudo">
